import request from '@/utils/request';

// 保存搜索历史
export function saveSearchHistory(userId, keyword) {
  return request({
    url: `/usergoods/saveHistory/${userId}/${keyword}`,
    method: 'get'
  });
}

// 获取搜索历史
export function getSearchHistory(userId) {
  return request({
    url: `/usergoods/findHistory/${userId}`,
    method: 'get'
  });
}